import { ElMessage } from 'element-plus'

export const handleError = (error, message = '操作失败') => {
  console.error(error)
  ElMessage.error(message)
} 